package serveur.vue;

import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class Fenetre extends JFrame{

	private static final long serialVersionUID = 1L;
	private JPanel panneau;
	private final static int WIDTH = 600, HEIGHT = 400;

	public Fenetre()
	{
		this.setSize(new Dimension(Fenetre.WIDTH, Fenetre.HEIGHT));
		this.setTitle("Administration blind test");
		this.setResizable(true);
		this.setLocationRelativeTo(null);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		this.setPanneau(new GestionVue(this));
		
		
		this.setVisible(true);
	}

	public JPanel getPanneau() {
		return panneau;
	}

	public void setPanneau(JPanel panneau) {
		this.panneau = panneau;
		this.setContentPane(panneau);
		this.setVisible(true);
	}
	
}